import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/home"
    },
    {
      path: "/home",
      name: "Home",
      component: () => import('@/views/home/home.vue')
    },
    {
      path: "/favor",
      name: "Favor",
      component: () => import('@/views/favor/favor.vue')
    },
    {
      path: "/order",
      name: "Order",
      component: () => import('@/views/order/order.vue')
    },
    {
      path: "/message",
      name: "Message",
      component: () => import('@/views/message/message.vue')
    },
    {
      path: "/city",
      name: "City",
      component: () => import('@/views/city/city.vue'),
      // meta: {
      //   hideTabBar: true
      // }
    },
    {
      path: "/search",
      name: "Search",
      component: () => import('@/views/search/search.vue'),
      // meta: {
      //   hideTabBar: true
      // }
    },
    {
      path: "/detail/:id",
      name: "Detail",
      component: () => import('@/views/detail/detail.vue'),
      // meta: {
      //   hideTabBar: true
      // }
    },
    {
      path: "/testScroll",
      name: "TestScroll",
      component: () => import('@/views/test-scroll.vue'),
      meta: {
        hideTabBar: true
      }
    }
  ]
})


export default router

